﻿using DomainCommons.Models;

namespace ApplicationModels.A07.Chats
{
    public class MessageAM : BaseEntity<int>
    {
        /// <summary>
        /// 所属会话
        /// </summary>
        public int ConversationId { get; set; }
        /// <summary>
        /// 发送者
        /// </summary>
        public string? SenderId { get; set; }
        public string? SenderAvatar { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string? Content { get; set; }
        public MessageAM(int conversationId,string senderId,string content)
        {
            ConversationId = conversationId;
            SenderId = senderId;
            Content = content;
            CreationTime = DateTime.Now;
        }
        public MessageAM() { }
    }
}
